package mileena

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

class AppPlace {
	
	AppAddress 		appAddress
	AppReview  		appReview
	AppPlaceAmenity appPlaceAmenity
	String 	   		appPlaceName
	String     		appPhone
	Date       		appPlaceSignUp
	
	static hasMany = [events : AppEvent, users: AppUser]
	static belongsTo = AppUser
	
	static constraints = 
	{
		appAddress()
		appReview()
		appPlaceAmenity()
		appPlaceName()
		appPhone()
		appPlaceSignUp()
	}
	
	String toString(){
		"$appPlaceName"
	}
	
}
